package com.zb.mobile;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author WEN
 * @Date 2023/11/5 0005
 **/
@Data
@ApiModel("客户工单更改期望上门日期时间对象")
public class UserOrderExpectedTimeVo {
    @NotNull(message = "工单ID不能为空")
    @ApiModelProperty(value = "工单ID", required = true)
    private Long workId;

    @NotNull(message = "期望上门日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "期望上门日期", required = true)
    private Date expectedDate;

    @NotNull(message = "期望上门开始时间不能为空")
    @JsonFormat(pattern = "HH:mm")
    @ApiModelProperty(value = "期望上门开始时间", required = true)
    private Date expectedStartTime;

    @NotNull(message = "期望上门结束时间不能为空")
    @JsonFormat(pattern = "HH:mm")
    @ApiModelProperty(value = "期望上门结束时间", required = true)
    private Date expectedEndTime;

    @Length(max = 100, message = "备注长度限制 100 个字符以内")
    @ApiModelProperty(value = "备注")
    private String remark;
}
